<?php


namespace app\module\admin\controller;


use app\BaseController;
use app\model\Department;

class System extends BaseController
{

    public function getDepartmentList(): \think\Response
    {
        $pid = $this->request->get('pid',0);
        $list = Department::where('status',1)->where('pid',$pid)->select();
        return $this->success($list);
    }

    public function addDepartmentUser(): \think\Response
    {
        $pid = $this->request->get('pid',0);
        $list = Department::where('status',1)->where('pid',$pid)->select();
        return $this->success($list);
    }
}